package com.yuntai.pms.model.entity.system;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.alibaba.fastjson.JSON;

/**
 * @ClassName: Role
 * @Description: 角色表 openapi_role 对应的实体类
 * @author caijg@hsyuntai.com
 * @date 2017年8月28日 下午3:00:29
 */
public class Role implements Serializable{
	
	private static final long serialVersionUID = 308194219971038906L;

	/** @Fields id : 主键 角色id*/
	private Long id;

    /** @Fields name : 角色名字*/
    private String name;

    /** @Fields description : 角色描述*/
    private String description;

    /** @Fields createTime : 创建时间*/
    private Date createTime;

    /** @Fields updateTime : 最后一次更新时间*/
    private Date updateTime;

    /** @Fields status : 状态：是否可用 enabled 或 diabled*/
    private String status;

    /** @Fields type : 类型：1-系统用色 或 2-用户自定义*/
    private String type;


    private List<Function> functions;
    private List<Long>     hosIdList; //具体的医院关系


    private boolean isChecked;    // 查询有没有绑定用户

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public List<Long> getHosIdList() {
        return hosIdList;
    }

    public void setHosIdList(List<Long> hosIdList) {
        this.hosIdList = hosIdList;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

	public List<Function> getFunctions() {
		return functions;
	}

	public void setFunctions(List<Function> functions) {
		this.functions = functions;
	}
	@Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}